<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <!--移动端预览-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <!--引入自定义CSS-->
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>
    <!--导航-->
    <nav th:replace="_fragments :: menu(2)" class="ui inverted attached segment segment m-padded-tb-mini m-shadow-small">
        <!--/*-->
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">小小叶儿</h2>
                <a href="#" th:href="@{/}" class="m-item item m-mobile-hide" ><i class="small home icon"></i>首页</a>
                <a href="#" th:href="@{/types}" class="m-item item m-mobile-hide active" ><i class="small idea icon"></i>分类</a>
                <a href="#" th:href="@{tags}" class="m-item item m-mobile-hide"  ><i class="small tags icon"></i>标签</a>
                <a href="#" th:href="@{/archives}" class="m-item item m-mobile-hide"><i class="small clone icon"></i>归档</a>
                <a href="#" th:href="@{/about}" class="m-item item m-mobile-hide"><i class="small info icon"></i>站长信息</a>
                <div class="right m-item item m-mobile-hide">
                    <form name="search" action="#" target="_blank" method="post">
                        <div class="ui icon inverted  input">
                            <input type="text" name="query" placeholder="Search....">
                            <i class="search icon link"></i>
                        </div>
                    </form>
                </div>
            </div>
            <!--menu toggle无任何显示意思-->
            <a href="" class="ui icon menu toggle black button m-right-top m-mobile-show">
                <i class="sidebar icon"></i>
            </a>
        <!--*/-->
    </nav>

    <!--中间内容-->
    <div class="m-container-small m-padded-tb-big">
        <!--适应移动端手机-->
        <div class="ui container">
            <!--header-->
            <div class="ui top attached segment">
                <div class="ui middle aligned two column grid">
                    <dvi class="column">
                        <h3 class="ui teal header">分类</h3>
                    </dvi>
                    <dvi class="right aligned column">
                        共 <h2 class="ui orange header m-inline-blok m-text-thin" th:text="${#arrays.length(types)}">14</h2>个
                    </dvi>
                </div>
            </div>
            <!--分类列表区域-->
            <div class="ui attached segment m-padded-tb-large   ">
                <div class="ui labeled button m-margin-tb-tiny" th:each="type : ${types}">
                    <a href="#" th:href="@{/types/{id}(id=${type.id})}" class="ui basic  button" th:classappend="${type.id==avtiveTypeId }? 'teal'" th:text="${type.name}">学习日志</a>
                    <div class="ui basic left pointing label"  th:classappend="${type.id==avtiveTypeId }? 'teal'"  th:text="${#arrays.length(type.blogs)}">
                        12
                    </div>
                </div>
                <!--/*-->
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">学习日志</a>
                    <div class="ui basic left pointing label">
                        11
                    </div>
                </div>
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">学习日志</a>
                    <div class="ui basic left pointing label">
                        23
                    </div>
                </div>
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">学习日志</a>
                    <div class="ui basic left pointing label">
                        26
                    </div>
                </div>
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">JavaEE学习</a>
                    <div class="ui basic left pointing label">
                        65
                    </div>
                </div>
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">历史人文</a>
                    <div class="ui basic left pointing label">
                        24
                    </div>
                </div>
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">生活</a>
                    <div class="ui basic left pointing label">
                        24
                    </div>
                </div>
                <div class="ui labeled button m-margin-tb-tiny">
                    <a href="#" class="ui basic button">旅行</a>
                    <div class="ui basic left pointing label">
                        24
                    </div>
                </div>
                <!--*/-->
            </div>
            <!--博客列表-->
            <div class="ui top attached teal segment">
                <div class="ui padded vertical segment m-padded-tb-large m-mobile-clear" th:each="blog : ${page.content}">
                    <!--mobile reversed反序-->
                    <div class="ui middle aligned grid mobile reversed stackable" >
                        <div class="eleven wide column">
                            <h3><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">庐山旅行记录-江西</a></h3>
                            <p class="m-text" th:text="|${blog.description}.....|">庐山，又名匡山、
                                匡庐，位于江西省九江市庐山市境内。介于东经115°52′—116°8′，北纬29°26′—29°41′之间。东偎婺源、鄱阳湖，南靠滕王阁，西邻京九铁路大通脉，北枕滔滔长江。 </p>
                            <div class="ui grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img src="https://picsum.photos/id/1011/100/100" alt="" class="ui avatar image" th:src="@{${blog.user.avatar}}"  >
                                            <div class="content"> <a href="#" th:href="@{/about}" target="_blank" class="header" th:text="${blog.user.nickname}">叶仁平</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2019-10-01</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i><span th:text="${blog.views}">7437</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="five wide right aligned column">
                                    <a href="#"  th:href="@{/types/{id}(id=${blog.type.id})}"  class="ui teal basic label m-padded-tiny m-text-thin" th:text="${blog.type.name}">认知升级</a>
                                </div>
                            </div>
                        </div>
                        <div class="five wide column">
                            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                <img src="https://picsum.photos/id/1011/800/400" alt="" th:src="@{${blog.firstPicture}}" class="ui round image">
                            </a>
                        </div>
                    </div>
                    <!--/*-->
                    <div class="ui grid mobile reversed stackable">
                        <div class="eleven wide column">
                            <h3 class="ui header">庐山旅行记录-九江</h3>
                            <p class="m-text">庐山，又名匡山、匡庐，位于江西省九江市庐山市境内。介于东经115°52′—116°8′，北纬29°26′—29°41′之间。东偎婺源、鄱阳湖，南靠滕王阁，西邻京九铁路大通脉，北枕滔滔长江。 </p>
                            <div class="ui stackable grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img src="https://picsum.photos/id/1011/100/100" alt="" class="ui avatar image">
                                            <div class="content"> <a href="#" class="header">叶仁平</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i>2019-10-01
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i>7437
                                        </div>
                                    </div>
                                </div>
                                <div class="five wide right aligned column">
                                    <a href="#" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
                                </div>
                            </div>
                        </div>
                        <div class="five wide column">
                            <a href="" target="_blank">
                                <img src="https://picsum.photos/id/1011/800/400" alt="" class="ui round image">
                            </a>
                        </div>
                    </div>
                    <div class="ui grid mobile reversed stackable">
                        <div class="eleven wide column">
                            <h3 class="ui header">庐山旅行记录-九江</h3>
                            <p class="m-text">庐山，又名匡山、匡庐，位于江西省九江市庐山市境内。介于东经115°52′—116°8′，北纬29°26′—29°41′之间。东偎婺源、鄱阳湖，南靠滕王阁，西邻京九铁路大通脉，北枕滔滔长江。 </p>
                            <div class="ui stackable grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img src="https://picsum.photos/id/1011/100/100" alt="" class="ui avatar image">
                                            <div class="content"> <a href="#" class="header">叶仁平</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i>2019-10-01
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i>7437
                                        </div>
                                    </div>
                                </div>
                                <div class="five wide right aligned column">
                                    <a href="#"  target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
                                </div>
                            </div>
                        </div>
                        <div class="five wide column">
                            <a href="" target="_blank">
                                <img src="https://picsum.photos/id/1011/800/400" alt="" class="ui round image">
                            </a>
                        </div>
                    </div>
                    <div class="ui grid mobile reversed stackable">
                        <div class="eleven wide column">
                            <h3 class="ui header">庐山旅行记录-九江</h3>
                            <p class="m-text">庐山，又名匡山、匡庐，位于江西省九江市庐山市境内。介于东经115°52′—116°8′，北纬29°26′—29°41′之间。东偎婺源、鄱阳湖，南靠滕王阁，西邻京九铁路大通脉，北枕滔滔长江。 </p>
                            <div class="ui stackable grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img src="https://picsum.photos/id/1011/100/100" alt="" class="ui avatar image">
                                            <div class="content"> <a href="#" class="header">叶仁平</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i>2019-10-01
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i>7437
                                        </div>
                                    </div>
                                </div>
                                <div class="five wide right aligned column">
                                    <a href="#"  target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
                                </div>
                            </div>
                        </div>
                        <div class="five wide column">
                            <a href="" target="_blank">
                                <img src="https://picsum.photos/id/1011/800/400" alt="" class="ui round image">
                            </a>
                        </div>
                    </div>
                    <!--*/-->
                </div>
            </div>
            <!--分页-->
            <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                <div class="ui middle aligned two column grid">
                    <dvi class="column">
                        <a href="#" th:href="@{/(page=${page.number}-1)}"  th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                    </dvi>
                    <dvi class="right aligned column">
                        <a href="#" th:href="@{/(page=${page.number}+1)}"  th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                    </dvi>
                </div>
            </div>
        </div>
    </div>
    <br>
    <br>
    <!--底部-->
    <footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive ">
        <!--/*-->
        <div class="ui center aligned container ">
            <div class="ui inverted divided stackable grid">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <h4 class="ui inverted header m-opacity-min">站长微信</h4>
                        <div class="item">
                            <img src="../static/images/WeChat.jpg" th:src="@{/images/WeChat.jpg}" CLASS="ui rounded image" alt="" style="width:110px">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-opacity-min">最新动态</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">我在等你2019年</a>
                        <a href="#" class="item">idea的操作笔记</a>
                        <a href="#" class="item">SpringBoot学习计划</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-opacity-min">联系作者</h4>
                    <div class="ui inverted link list">
                        <a href="https://space.bilibili.com/393270022" class="item">b站</a>
                        <a href="#" class="item">QQ:1515177029</a>
                        <a href="#" class="item">邮箱:yerenping@aliyun.com</a>
                    </div>

                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header m-opacity-min">关于作者</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-min m-text-lined">作者是一名springboot爱好者,是一名正在努力奋斗的学生,主要学习JavaEE开发,Web前端等技术.作者是个喜欢旅行的孩子,目标是游遍全世界！</p>
                </div>
            </div>
            <!--分割线-->
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-tiny">Copy © 2019 - 2020 作者:小小叶儿 此站仅供个人所有 如有疑问联系作者</p>
        </div>
        <!--*/-->
    </footer>
    <!--引入所需要的JS-->
    <th:block th:replace="_fragments :: script">

    </th:block>

    <!--声明行内js代码域-->
    <script>
        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('m-mobile-hide');
        });

    </script>
</body>
</html>